package com.sctvcloud.linshui.ui.adapter.holder;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.sctvcloud.linshui.R;
import com.sctvcloud.linshui.beans.HomeListItem;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class FindFellowVillagersHolder extends BaseAbsHolder<HomeListItem> {

    private HomeListItem homeListItem;
    private OnFindFellowVillagersClickListener findFellowVillagersClickListener;

    public FindFellowVillagersHolder(Context context, View itemView, OnFindFellowVillagersClickListener listener) {
        super(context, itemView);
        this.findFellowVillagersClickListener = listener;
    }

    @Override
    public void setData(HomeListItem newsItem) {

    }

    @Override
    protected void initInject() {
        ButterKnife.bind(this, itemView);
    }

    @OnClick(value = {R.id.find_fellow_villagers})
    public void onClick(View view) {
        if (null != findFellowVillagersClickListener) {
            if (view.getId() == R.id.find_fellow_villagers) {
                findFellowVillagersClickListener.OnFindFellVillClick();
            }
        }
    }



    public interface OnFindFellowVillagersClickListener {
        void OnFindFellVillClick();
    }
}
